﻿#region Copyright 
/*-------------------------------------------------------------------------
* 命名空间名称/文件名:    SSPivot.Admin.Core.Service.sys.User.Dto/SysUserOtherDto 
* CLR版本:     4.0.30319.42000
* 机器名称:    DESKTOP-NHMLO8A
* 功 能：       N/A
* 类 名：       SysUserOtherDto
* 创建时间：  2025/6/4 16:42:21
* 版本号：      v1.0
* 创建人:        xulong
*-------------------------------------------------------------------------*/
#endregion
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SSPivot.Admin.Core.Service.sys.User.Dto
{

    /// <summary>
    /// 更新基本信息
    /// </summary>
    public class SysUserUpdateBasicDto
    {
        /// <summary>
        /// 姓名
        /// </summary>
        [Required(ErrorMessage = "请输入姓名")]
        public string Name { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; }
    }
    /// <summary>
    /// 修改密码
    /// </summary>
    public class SysUserChangePasswordDto
    {
        /// <summary>
        /// 旧密码
        /// </summary>
        [Required(ErrorMessage = "请输入旧密码")]
        public string OldPassword { get; set; }

        /// <summary>
        /// 新密码
        /// </summary>
        [Required(ErrorMessage = "请输入新密码")]
        public string NewPassword { get; set; }

        /// <summary>
        /// 确认新密码
        /// </summary>
        [Required(ErrorMessage = "请输入确认新密码")]
        public string ConfirmPassword { get; set; }
    }


    /// <summary>
    /// 重置密码
    /// </summary>
    public class UserResetPasswordDto
    {
        public long Id { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
    }


    /// <summary>
    /// 设置主管
    /// </summary>
    public class UserSetManagerDto
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        public long UserId { get; set; }

        /// <summary>
        /// 部门Id
        /// </summary>
        public long OrgId { get; set; }

        /// <summary>
        /// 是否主管
        /// </summary>
        public bool IsManager { get; set; }
    }

    /// <summary>
    /// 批量设置部门
    /// </summary>
    public class UserBatchSetOrgDto
    {
        /// <summary>
        /// 用户Id列表
        /// </summary>
        public long[] UserIds { get; set; }

        /// <summary>
        /// 所属部门Ids
        /// </summary>
        public virtual long[] OrgIds { get; set; }

        /// <summary>
        /// 主属部门Id
        /// </summary>
        public long OrgId { get; set; }
    }
}
